GtkMenuTracker: add hidden-when='macos-menubar'
authorRyan Lortie <desrt@desrt.ca>
Tue, 16 Dec 2014 17:14:23 +0000 (12:14 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 22 Dec 2014 11:22:26 +0000 (06:22 -0500)
commit6b26664c414a44e26553c0546632c9d5fff6a7b1
treeb546049f118bf56eb21712bad11190010d489fa3
parent4bc3f02d51051fd7deff1a658d40a3859bb68a42
GtkMenuTracker: add hidden-when='macos-menubar'

Provide a mechanism for hiding the "Quit", "About" and "Preferences"
menu items from the normal places in a traditional menubar layout (in
the File and Edit menus) when the menu is being rendered in the Mac OS
menubar.

These items can already be found in the application menu.

With this feature, applications can now define a single menu to use in
all 'traditional' scenarios.

Use this new attribute in Bloatpad.

https://bugzilla.gnome.org/show_bug.cgi?id=741610
examples/bp/gtk/menus.ui
gtk/gtkapplication-quartz-menu.c
gtk/gtkmenusectionbox.c
gtk/gtkmenushell.c
gtk/gtkmenutracker.c
gtk/gtkmenutracker.h
gtk/gtkmenutrackeritem.c
gtk/gtkmenutrackeritem.h